﻿/***************************************************************
 * Name:      new_task_dialog.h
 * Purpose:   新建任务对话框定义
 * Author:    杨卓荦 (yzl@bang5.net)
 * Created:   2010-08-29
 * Copyright: 杨卓荦 (http://www.bang5.net)
 * License:
 **************************************************************/

#ifndef NEWTASKDIALOG_H
#define NEWTASKDIALOG_H

//(*Headers(NewTaskDialog)
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/dirdlg.h>
#include <wx/dialog.h>
//*)

class NewTaskDialog: public wxDialog {
public:

  NewTaskDialog(wxWindow* parent, wxWindowID id = wxID_ANY);
  virtual ~NewTaskDialog();

  //(*Declarations(NewTaskDialog)
  wxButton* button_start_download;
  wxButton* button_browse;
  wxStaticText* static_text_threads;
  wxTextCtrl* text_ctrl_threads;
  wxTextCtrl* text_ctrl_url;
  wxDirDialog* dirdialog_save;
  wxTextCtrl* text_ctrl_file_path;
  wxStaticText* static_text_url;
  wxStaticText* static_text_dir;
  //*)

protected:

  //(*Identifiers(NewTaskDialog)
  static const long kIdStaticTextURL;
  static const long kIdTextCtrlURL;
  static const long kIdTextCtrlFilePath;
  static const long kIdButtonBrowse;
  static const long kIdStaticTextDir;
  static const long kIdButtonStartDownload;
  static const long kIdTextCtrlThreads;
  static const long kIdStaticTextThreads;
  //*)

private:

  //(*Handlers(NewTaskDialog)
  void OnButtonStartDownloadClick(wxCommandEvent& event);
  void OnButtonBrowseClick(wxCommandEvent& event);
  //*)

  DECLARE_EVENT_TABLE()
};

#endif
